package com.lagou.io;

import java.io.InputStream;

public class Resource {
    /**
     * 根据路径读取输入流
     * @param path
     * @return
     */
    public static  InputStream getResourceAsStream(String path){
        InputStream inputStream = Resource.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }
}
